package com.jmb.api.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jmb.api.entity.InterfaceCaseExecuteLog;

import com.jmb.api.vo.Interface.Case.Execute.InterfaceCaseExecuteLogVO;
import com.jmb.api.web.mapper.InterfaceCaseExecuteLogMapper;
import com.jmb.api.web.service.InterfaceCaseExecuteLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 金梦博
* @description 针对表【t_interface_case_execute_log】的数据库操作Service实现
* @createDate 2025-09-25 17:19:01
*/
@Service
public class InterfaceCaseExecuteLogServiceImpl extends ServiceImpl<InterfaceCaseExecuteLogMapper, InterfaceCaseExecuteLog>
    implements InterfaceCaseExecuteLogService {

    @Autowired
    private InterfaceCaseExecuteLogMapper interfaceCaseExecuteLogMapper;


    /**
     * 查看执行日志，包含请求信息和断言信息列表
     *
     * @param executeId 执行编号
     * @return InterfaceCaseExecuteLogVO
     */
    @Override
    public InterfaceCaseExecuteLogVO findExecute(Long executeId) {
        return interfaceCaseExecuteLogMapper.selectExecute(executeId);
    }

    @Override
    public InterfaceCaseExecuteLog saveExecuteLog(InterfaceCaseExecuteLog executeLog) {
        interfaceCaseExecuteLogMapper.insert(executeLog);
        return executeLog;
    }

    @Override
    public void modifyExecuteLog(InterfaceCaseExecuteLog updateChain) {
        interfaceCaseExecuteLogMapper.updateExecuteLog(updateChain);
    }
}




